package com.wang.pojo3;

import javax.annotation.Resource;

public class People3 {
    @Resource
    private Dog3 dog3;
    @Resource
    private Cat3 cat3;
    private String name3;

    public Dog3 getDog3() {
        return dog3;
    }

    public void setDog3(Dog3 dog3) {
        this.dog3 = dog3;
    }

    public Cat3 getCat3() {
        return cat3;
    }

    public void setCat3(Cat3 cat3) {
        this.cat3 = cat3;
    }

    public String getName3() {
        return name3;
    }

    public void setName3(String name3) {
        this.name3 = name3;
    }


    @Override
    public String toString() {
        return "People3{" +
                "dog3=" + dog3 +
                ", cat3=" + cat3 +
                ", name3='" + name3 + '\'' +
                '}';
    }
}
